<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title;?></title>
<?php echo $header;?>
<script type="text/javascript">
$(document).ready(function(){
	// 上传附件
	$('#b_upload').click(function(){
		$.dialog.open('<?php echo base_url('upload/show/image/path');?>',{title:'<?php echo lang('com_title_upload_file');?>',width:400,height:100,lock:true});
	});
	
	// 地区设置
	var url = '<?php echo base_url('district/get_district_as_option')?>';
	var upid = 0;
	var selected = '';
	$('#province').districtList(url,upid,selected);
	$("#province").change(function(){
		$("#city").districtChange(url);
	});
});
</script>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="table_top_left" width="17" valign="top"></td>
		<td class="table_top_middle" valign="top"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
				<tr>
					<td height="31" align="left"><div class="titlebt"><?php echo $page_label;?></div></td>
				</tr>
			</table></td>
		<td class="table_top_right" width="16" valign="top"></td>
	</tr>
	<tr>
		<td class="table_left_side" height="71" valign="middle"></td>
		<td valign="top" bgcolor="#F7F8F9"><table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
							<tr>
								<td align="left" class="left_txt"><?php echo $nav_label,$title?></td>
							</tr>
							<tr>
								<td ><form id="f_person" name="f_person" method="post" action="<?php echo base_url('person/add_action');?>">
										<table width="100%" class="list" cellpadding="0" style="border-collapse: collapse" border="1" bordercolor="#BFC4CA">
											<tr>
												<th colspan="2" height="25" bgcolor="#EEF2FB"><?php echo $title?></th>
											</tr>
											<tr>
												<td width="18%" height="25" align="right"><?php echo lang('person_name');?></td>
												<td width="83%" height="25" align="left"><input name="personname" type="text" id="personname" size="15"
	maxlength="10" />
													<span class="tip">*<?php printf(lang('com_tip_word_limit'), 10);?></span></td>
											</tr>
											<tr>
												<td width="18%" height="25" align="right"><?php echo lang('com_column_name');?></td>
												<td width="83%" height="25" align="left"><select name="classid" id="classid">
														<option value="0" selected="selected"><?php echo lang('com_column_choise');?></option>
														<?php echo format_column_as_select($class);?>
													</select>
													<span class="tip">*<?php echo lang('com_tip_select_sub_column');?></span></td>
											</tr>
											<tr>
												<td width="18%" align="right" height="25"><?php echo lang('person_gender');?></td>
												<td width="83%" height="25" align="left"><select name="gender" id="gender">
														<option value="1" selected="selected"><?php echo lang('person_gender_male');?></option>
														<option value="2"><?php echo lang('person_gender_female');?></option>
														<option value="0"><?php echo lang('person_gender_secret');?></option>
													</select>
													<span class="tip">*</span></td>
											</tr>
											<tr>
												<td width="18%" align="right" height="25"><?php echo lang('person_race');?></td>
												<td width="83%" height="25" align="left"><input name="race" type="text" id="race" size="15" maxlength="20" />
													<span class="tip">*<?php printf(lang('com_tip_word_limit'), 20);?></span></td>
											</tr>
											<tr>
												<td align="right" height="25"><?php echo lang('person_birthday');?></td>
												<td height="25" align="left"><input class="Wdate" name="birthday" type="text" id="birthday"
									size="15" maxlength="10" onfocus="WdatePicker({dateFmt:'yyyy-MM'})"/></td>
											</tr>
											<tr>
												<td align="right" height="25"><?php echo lang('person_address');?></td>
												<td height="25" align="left"><select name="province" id="province">
														<option value=""><?php echo lang('com_select_choise');?></option>
													</select>
													<select name="city" id="city">
														<option value=""><?php echo lang('com_select_choise');?></option>
													</select>
													<input name="address" type="text" id="address" size="40"
	maxlength="50" /></td>
											</tr>
											<tr>
												<td align="right" height="25"><?php echo lang('person_postcode');?></td>
												<td height="25" align="left"><input name="postcode" type="text" id="postcode" size="6"
	maxlength="6" /></td>
											</tr>
											<tr>
												<td align="right" height="25"><?php echo lang('person_telephone');?></td>
												<td height="25" align="left"><input name="telephone" type="text" id="telephone" size="25"
	maxlength="20" /></td>
											</tr>
											<tr>
												<td align="right" height="25"><?php echo lang('person_mobile');?></td>
												<td height="25" align="left"><input name="mobile" type="text" id="mobile" size="25"
	maxlength="20" /></td>
											</tr>
											<tr>
												<td align="right" height="25"><?php echo lang('person_email');?></td>
												<td height="25" align="left"><input name="email" type="text" id="email" size="30" maxlength="40" /></td>
											</tr>
											<tr>
												<td align="right" height="25"><?php echo lang('person_qq');?></td>
												<td height="25" align="left"><input name="qq" type="text" id="qq" size="15" maxlength="15" /></td>
											</tr>
											<tr>
												<td align="right" height="25"><?php echo lang('person_education');?></td>
												<td height="25" align="left"><input name="education" type="text" id="education" size="15"
	maxlength="10" /></td>
											</tr>
											<tr>
												<td align="right" height="25"><?php echo lang('person_company');?></td>
												<td height="25" align="left"><input name="company" type="text" id="company" size="40"
	maxlength="30" />
													<span class="tip">*<?php printf(lang('com_tip_word_limit'), 30);?></span></td>
											</tr>
											<tr>
												<td align="right" height="25"><?php echo lang('person_position');?></td>
												<td height="25" align="left"><input name="position" type="text" id="position" size="20"
	maxlength="15" />
													<span class="tip">*<?php printf(lang('com_tip_word_limit'), 15);?></span></td>
											</tr>
											<tr>
												<td align="right" height="25"><?php echo lang('person_photo');?></td>
												<td height="25" align="left"><input name="path" type="text" id="path" size="50"
	maxlength="200" />
													<input name="b_upload" type="button" class="button" id="b_upload" value="<?php echo lang('com_button_upload');?>" /></td>
											</tr>
											<tr>
												<td width="18%" align="right" height="25"><?php echo lang('person_introduction');?></td>
												<td width="83%" height="25" align="left"><textarea name="content" cols="100" rows="20" id="content"></textarea></td>
											</tr>
											<tr>
												<td align="right"><?php echo lang('com_keyword');?></td>
												<td align="left"><input name="keyword" type="text" id="keyword" size="40" maxlength="30" />
													<span class="tip"><?php printf(lang('com_tip_keyword_limit'), 30);?></span></td>
											</tr>
											<tr>
												<td align="right"><?php echo lang('com_releasename');?></td>
												<td align="left"><input name="releasename" type="text" id="releasename" readonly="readonly" value="<?php echo $loginname?>" size="20" maxlength="15" />
													<span class="tip">*<?php printf(lang('com_tip_word_limit'), 20);?></span></td>
											</tr>
											<tr>
												<td align="right"><?php echo lang('com_remark');?></td>
												<td align="left"><input name="remark" type="text" id="remark" size="30" maxlength="20" />
													<span class="tip"><?php printf(lang('com_tip_admin_visible'), 20);?></span></td>
											</tr>
											<tr>
												<td colspan="2" height="25"><input name="s_person_add" type="submit" class="button" id="s_person_add" value="<?php echo lang('com_button_submit');?>" />
													<input name="Submit2" type="reset" class="button" value="<?php echo lang('com_button_reset');?>" /></td>
											</tr>
										</table>
									</form></td>
							</tr>
						</table></td>
				</tr>
			</table></td>
		<td class="table_right_side"></td>
	</tr>
	<tr>
		<td valign="middle" class="table_bottom_left">&nbsp;</td>
		<td height="17" valign="top" class="table_bottom_middle">&nbsp;</td>
		<td class="table_bottom_right">&nbsp;</td>
	</tr>
</table>
</body>
</html>
